package com.yanyeori.framework.web.filter;

import com.yanyeori.framework.core.model.WebResponse;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@FunctionalInterface
public interface RequestFilter {
    WebResponse<?> handle(HttpServletRequest request, HttpServletResponse response);

    default int getOrder() {
        return Integer.MAX_VALUE;
    }
}
